// 页面路径：store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import persistence from 'vuex-uniapp-persistence'
import user from '@/store/modules/user'
import system from '@/store/modules/system'
Vue.use(Vuex) //vue的插件机制
//Vuex.Store 构造器选项

import getters from './getters'
const store = new Vuex.Store({
  plugins: [persistence()],
  state: {},
  getters,
  modules: { user, system },
})
export default store
